/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: Frank
 * 系统版本: 1.0.0
 * 开发人员: Frank
 * 开发时间: 2019/11/20 11:38
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.spring.arch.message.dto;

import com.spring.arch.message.enums.BusinessType;
import com.spring.arch.message.enums.BusinessType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 验证码发送参数
 * @author Frank
 * @version 1.0.0.1
 * @since 2019/11/20 11:38
 */
@ToString
@NoArgsConstructor
@Getter
@Setter
public class VerificationSendParam implements Serializable {

    private static final long serialVersionUID = 7761484425484410442L;

    /**
     * 手机号
     */
    @NotBlank
    @Pattern(regexp = "^(1[3-9])\\d{9}$", message = "用户手机号码格式错误")
    @ApiModelProperty(value = "手机号", allowableValues = "^(1[3-9])\\d{9}$")
    private String mobile;

    /**
     * 业务类型
     */
    @NotNull
    @ApiModelProperty(value = "业务类型", allowableValues = "用户登录提醒-LOGIN, " +
            "工单关注-WORKORDER_FOUCES, " +
            "接单提醒-WORKORDER_RECEIVE, " +
            "工单超时提醒-WORKORDER_TIMEOUT, " +
            "修改密码验-CHANGE_PASSWORD")
    private BusinessType businessType;

}
